package vn.com.shoppie.activity2;

import java.util.ArrayList;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class ViewPagerAdapter extends FragmentPagerAdapter {
	@SuppressWarnings("unused")
	private Context _context;
	private ArrayList<Fragment> _listData;

	public ViewPagerAdapter(Context context, FragmentManager fm, ArrayList<Fragment> listFrg) {
		super(fm);
		_context = context;
		this._listData = listFrg;
	}

	@Override
	public Fragment getItem(int position) {
		return _listData.get(position);
	}

	@Override
	public int getCount() {
		return _listData.size();
	}

}
